package com.chain;

/**
 * 定义一个处理请求的接口
 * 
 * @author Administrator
 * 
 */
public abstract class Manager {

	protected String name;
	protected Manager successor;// 设置继任者

	public Manager(String name) {
		super();
		this.name = name;
	}

	public void setSuccessor(Manager successor) {
		this.successor = successor;
	}

	public abstract void requestApplications(Request request);

}
